import request from '@/utils/request'



export function dailyReportList(data) { //生产日报-列表
  return request({
    url: '/project-quality/api/productionDailyReport/page',
    method: 'post',
    data
  })
}
export function dailyReportListAll(data) { //生产日报-列表
  return request({
    url: '/project-quality/api/productionDailyReport/productionDailyReport',
    method: 'post',
    data
  })
}


export function dailyReportAdd(data) { //生产日报-新增
  return request({
    url: '/project-quality/api/productionDailyReport/add',
    method: 'post',
    data
  })
}


export function dailyReportEdit(data) { //生产日报-编辑
  return request({
    url: '/project-quality/api/productionDailyReport/edit',
    method: 'post',
    data
  })
}


export function dailyReportDelete(id) { //生产日报-删除
  return request({
    url: '/project-quality/api/productionDailyReport/del/' + id,
    method: 'get',
  })
}


export function dailyReportDetails(id) { //生产日报-详情
  return request({
    url: '/project-quality/api/productionDailyReport/' + id,
    method: 'get',
  })
}

export function  dailyReportExport(id) { //生产日报-导出
  return request({
      url: '/project-quality/api/productionDailyReport/export/'+id,
      responseType: 'arraybuffer',
      method: 'get',
  })
}

export function  dailyReportQuery(data) { //生产日报-日期id查
  return request({
      url: '/project-quality/api/productionDailyReport/byReportDate',
      method: 'POST',
      data,
  })
}